/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {
    passportGithub: {
      key: '51c7ce7491fd2d802d89',
      secret: '19e8587fdb34de5839ca24a2244b57e75c520180',
    },
    passportGitee: {
      key: '0f4fe054c9224085a381d6d8611f8c9d12025d8f658ee2ae0c6517a612764d69',
      secret: '35ea5e628276b5a1da4b3358cf1bf73472ffde1c8e57828e3ceee380e23c3787',
    },
  };

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1579164388767_7911';

  // add your middleware config here
  config.middleware = [];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  return {
    ...config,
    ...userConfig,
  };
};
